

package com.hazelcast.internal.config;

import com.hazelcast.config.AbstractXmlConfigBuilder;
import org.w3c.dom.Node;

/**
 * Interface used by XML and YAML configuration classes for traversing
 * and filling config object graph.
 *
 * @see MemberDomConfigProcessor
 * @see AbstractXmlConfigBuilder
 */
public interface DomConfigProcessor {

    /**
     * Traverses the DOM and fills the config
     *
     * @param rootNode the root node
     * @throws Exception in case of any exceptional case
     */
    void buildConfig(Node rootNode) throws Exception;
}
